package Work;

public class Meat extends Food {
    public Meat(){

    }


    private String name;
    public String getName(){
        return name;
    }
    public void setName(String name ){
        this.name=name;
    }



    public static void main(String[]args){
        Meat meat =new Meat();
        Meat meat1 =new Meat();
        meat1.setName("猪肉");
        meat.setName("牛肉");
    Food food =new Food();
    Food food1 =new Food();
    Fruits smallFruits=new Fruits();
    Fruits smallFruits1=new Fruits();
    food.setName("肉");
    food.setShape("软");
    food1.setName("水果");
    food1.setShape("圆形");
    smallFruits.setName("西瓜");
    smallFruits1.setName("桃子");
    food.setPrice(10);
    food1.setPrice(20);
    smallFruits.setWhistle("well");
    smallFruits1.setWhistle("verywell");
    System.out.println(food.getName()+"有"+meat.getName()+"和"+meat1.getName());
    System.out.println(food1.getName()+"有"+smallFruits.getName()+"和"+smallFruits1.getName());



    }

}
